package com.hellohoper.script.config.engine.engine;

import javax.script.ScriptEngine;

/**
 * 引擎服务
 * Created by hk on 17/8/15.
 */
public interface EngineService {

    /**
     * 获得脚本引擎
     *
     * @param appName  appName
     * @param ruleType ruleType
     * @return 脚本引擎
     * @throws Exception E
     */
    ScriptEngine getGroovyEngine(String appName, String ruleType) throws Exception;
}
